// File: jmcomic-core/src/main/java/dev/jukomu/jmcomic/config/JmMagicConstants.java
package dev.jukomu.jmcomic.config;

/**
 * 禁漫相关的常量定义，对应Python的JmMagicConstants。
 */
public final class JmMagicConstants {

    // 搜索参数-排序
    public static final String ORDER_BY_LATEST = "mr";
    public static final String ORDER_BY_VIEW = "mv";
    public static final String ORDER_BY_PICTURE = "mp";
    public static final String ORDER_BY_LIKE = "tf";

    public static final String ORDER_MONTH_RANKING = "mv_m";
    public static final String ORDER_WEEK_RANKING = "mv_w";
    public static final String ORDER_DAY_RANKING = "mv_t";

    // 搜索参数-时间段
    public static final String TIME_TODAY = "t";
    public static final String TIME_WEEK = "w";
    public static final String TIME_MONTH = "m";
    public static final String TIME_ALL = "a";

    // 分类参数API接口的category
    public static final String CATEGORY_ALL = "0"; // 全部
    public static final String CATEGORY_DOUJIN = "doujin"; // 同人
    public static final String CATEGORY_SINGLE = "single"; // 单本
    public static final String CATEGORY_SHORT = "short"; // 短篇
    public static final String CATEGORY_ANOTHER = "another"; // 其他
    public static final String CATEGORY_HANMAN = "hanman"; // 韩漫
    public static final String CATEGORY_MEIMAN = "meiman"; // 美漫
    public static final String CATEGORY_DOUJIN_COSPLAY = "doujin_cosplay"; // cosplay
    public static final String CATEGORY_3D = "3D"; // 3D
    public static final String CATEGORY_ENGLISH_SITE = "english_site"; // 英文站

    // 副分类
    public static final String SUB_CHINESE = "chinese"; // 汉化，通用副分类
    public static final String SUB_JAPANESE = "japanese"; // 日语，通用副分类

    // 其他类（CATEGORY_ANOTHER）的副分类
    public static final String SUB_ANOTHER_OTHER = "other"; // 其他漫画
    public static final String SUB_ANOTHER_3D = "3d"; // 3D
    public static final String SUB_ANOTHER_COSPLAY = "cosplay"; // cosplay

    // 同人（SUB_CHINESE）的副分类
    public static final String SUB_DOUJIN_CG = "CG"; // CG
    public static final String SUB_DOUJIN_CHINESE = SUB_CHINESE;
    public static final String SUB_DOUJIN_JAPANESE = SUB_JAPANESE;

    // 短篇（CATEGORY_SHORT）的副分类
    public static final String SUB_SHORT_CHINESE = SUB_CHINESE;
    public static final String SUB_SHORT_JAPANESE = SUB_JAPANESE;

    // 单本（CATEGORY_SINGLE）的副分类
    public static final String SUB_SINGLE_CHINESE = SUB_CHINESE;
    public static final String SUB_SINGLE_JAPANESE = SUB_JAPANESE;
    public static final String SUB_SINGLE_YOUTH = "youth";

    // 图片分割参数
    public static final int SCRAMBLE_220980 = 220980;
    public static final int SCRAMBLE_268850 = 268850;
    public static final int SCRAMBLE_421926 = 421926; // 2023-02-08后改了图片切割算法

    // 移动端API密钥
    public static final String APP_TOKEN_SECRET = "18comicAPP";
    public static final String APP_TOKEN_SECRET_2 = "18comicAPPContent";
    public static final String APP_DATA_SECRET = "185Hcomic3PAPP7R";
    public static final String API_DOMAIN_SERVER_SECRET = "diosfjckwpqpdfjkvnqQjsik";
    public static String APP_VERSION = "1.8.0"; // 这个版本号在运行时可能被更新，因此不是final

    // 私有构造函数，防止实例化
    private JmMagicConstants() {
    }
}